<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html,
        body {
            width: 100%;
            height: 100%;
            font-family: Arial, sans-serif;
            background-color: #e6f2ff;
        }

        /* .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        } */

        /* .navbar {
            width: 100%;
            height: 60px;
            background-color: #007bff;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 20px;
        }

        .navbar a {
            color: white;
            text-decoration: none;
            font-size: 18px;
            padding: 10px 20px;
            transition: background-color 0.3s ease;
        } */

        .container .navbar {
            width: 100%;
            height: 55px;
            background-color: #007bff;
            /* 给父级标签设置overflow，取消后续float带来的影响 */
            overflow: hidden;
        }

        .container .navbar a {
            /* 设置a标签是行内块元素，允许你设置宽度 */
            display: inline-block;
            /* 设置a标签的宽度,a标签默认行内元素，无法设置宽度 */
            width: 110px;
            /* 设置字体颜色 */
            color: white;
            /* 设置字体的大小 */
            font-size: large;
            /* 设置文字的高度和导航栏一样的高度 */
            line-height: 50px;
            /* 去掉a标签的下划线 */
            text-decoration: none;
            /* 设置a标签中的文字居中 */
            text-align: center;
        }

        .navbar a:hover {
            background-color: #0056b3;
        }

        /* .login {
            background-color: #28a745;
        } */

          .container .navbar .login {
            float: right;
        }

        .login:hover {
            background-color: #1e7e34;
        }

        .content {
            padding-top: 30px;
            text-align: center;
            margin-top: 200px;
        }

        .content h1 {
            font-size: 32px;
            margin-bottom: 30px;
        }

        .content p {
            font-size: 18px;
            margin-bottom: 30px;
        }

        .content a {
            color: #007bff;
            padding: 10px 20px;
            background-color: white;
            border-radius: 5px;
            text-decoration: none;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }

        .content a:hover {
            background-color: #007bff;
            color: white;
        }

        @media only screen and (max-width: 768px) {
 .container {
    padding: 10px;
  }

 .navbar a {
    width: 100%;
    padding: 10px 0;
  }

 .content h1 {
    font-size: 24px;
  }

 .content p {
    font-size: 16px;
  }

 .content a {
    padding: 8px 16px;
    font-size: 16px;
  }
}

        
    </style>
</head>

<body>
    <div class="container">
        <div class="navbar">
            <a href="/"><i class="fas fa-home"></i> 首页</a>
            <a href="/all_questions"><i class="fas fa-list"></i> 题库</a>
            <a href="/race"><i class="fas fa-trophy"></i> 竞赛</a>
            <a href="#"><i class="fas fa-comments"></i> 讨论</a>
            <a href="#"><i class="fas fa-briefcase"></i> 求职</a>
            <a class="login" href="/login"><i class="fas fa-sign-in"></i> 登录</a>
        </div>
        <div class="content">
            <h1 class="_font">欢迎来到我的 OnlineJudge 平台</h1>
            <p class="_font">这个我个人独立开发的一个在线 OJ 平台</p>
            <a class="_font" href="/all_questions">点击开始编程</a>
        </div>
    </div>
</body>

</html>